# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-input-synaptics
pkgver=1.9.2
pkgrel=1
pkgdesc="X.org synaptics input driver"
url="https://www.x.org"
arch="all"
license="MIT"
subpackages="$pkgname-doc $pkgname-dev"
makedepends="libxkbfile-dev xorg-server-dev libxi-dev libxrandr-dev
	mtdev-dev libxtst-dev libevdev-dev"
source="https://www.x.org/releases/individual/driver/xf86-input-synaptics-$pkgver.tar.gz"

build() {
	export CFLAGS="${CFLAGS/-fno-plt}"
	export CXXFLAGS="${CXXFLAGS/-fno-plt}"
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
655c9802d2d545614fa1b62c76a26c8abf2e92d3c1b6f4179da4fbcb844b0be4a32de12dbe2370238ee33a66b941fef61c5452782fddd2f2a433777c0a720d06  xf86-input-synaptics-1.9.2.tar.gz
"
